import request from '@/utils/request'
import axios from "axios";

//获取课程信息
export const courseInfo =(courseId) => request.get('/student/course/info',{
  params: {courseId}
})
axios.interceptors.request.use(config => {
    config.baseURL = 'https://your-api-domain.com'
    config.headers.Authorization = `Bearer ${localStorage.getItem('token')}`
    return config
})

